const data = {
  nodes: [
    {
      id: '6f36e3f6-316f-4d96-970d-c13eba401aa7',
      label: '自定义变量',
      renderKey: 'DND_NODE',
      data: {
        id: '111',
        node_name: '自定义变量',
        node_type: 0,
        created_at: '2020-07-11',
        updated_at: '2020-07-11',
        node_script: 'javascript',
        node_id: 'VARIABLE_NODE',
        node_conf: {
          display: '自定义变量',
          name: '节点标识',
          tags: ['这是一个标签'],
          description: '这是一段描述',
          image: '',
          category: '分类一',
          script:
            "# -*- coding: utf-8 -*-\n# Desc : 针对蚁剑连接php后门时用ascii码编码的流量数据进行解密1\n\nfrom urllib import unquote\nimport re\n\nencode_body = xbot.args()[\"encode_body\"].strip()\ndata_url_decode = unquote(encode_body)  # url解码\ndata_lower = data_url_decode.lower()  # 字符串中的大写字母全都转换为小写\n\nfind_chr_expression = re.compile(r'((chr\\(\\d+\\)\\.)+(chr\\(\\d+\\)))')\nfind_chr_expression_result = find_chr_expression.findall(data_lower)\nend_data_list = find_chr_expression_result[0][0].split('.')\n# print(end_data)\nfor n in range(0, len(end_data_list)):\n    new = eval(end_data_list[n])\n    end_data_list[n] = new\n# print(end_data_list)\n# 将解码后的数据替换回到原始字符串中\nend_data = re.sub(r'((chr\\(\\d+\\)\\.)+(chr\\(\\d+\\)))', (''.join(end_data_list)), data_lower)\nxbot.results({\"text\":end_data})",
          variables: {
            value: [
              {
                display: '变量一',
                name: 'lp',
                required: true,
                type: 'number',
                default: 100,
                defined: 0,
                description: '45'
              },
              {
                display: '变量二',
                name: 'jb',
                required: false,
                type: 'object',
                default: { name: 'lp', age: 18 },
                defined: 0,
                description: '45'
              }
            ]
          }
        }
      },
      x: 80,
      y: 50,
      width: 200,
      height: 36,
      ports: {
        items: [
          { group: 'top', id: '622585a0-4a39-4553-909d-9234d31b68d2' },
          { group: 'right', id: '925b18be-31b9-4df7-aceb-0b58c8b7d460' },
          { group: 'bottom', id: '5b06fbaa-3db2-4764-91d5-eab6ab8a4af9' },
          { group: 'left', id: '043e60a6-99eb-4b7d-9b3e-27e8b707fe3f' }
        ],
        groups: {
          top: {
            position: { name: 'top' },
            attrs: {
              circle: {
                r: 4,
                magnet: true,
                stroke: '#31d0c6',
                strokeWidth: 2,
                fill: '#fff',
                style: { visibility: 'hidden' }
              }
            },
            zIndex: 10
          },
          right: {
            position: { name: 'right' },
            attrs: {
              circle: {
                r: 4,
                magnet: true,
                stroke: '#31d0c6',
                strokeWidth: 2,
                fill: '#fff',
                style: { visibility: 'hidden' }
              }
            },
            zIndex: 10
          },
          bottom: {
            position: { name: 'bottom' },
            attrs: {
              circle: {
                r: 4,
                magnet: true,
                stroke: '#31d0c6',
                strokeWidth: 2,
                fill: '#fff',
                style: { visibility: 'hidden' }
              }
            },
            zIndex: 10
          },
          left: {
            position: { name: 'left' },
            attrs: {
              circle: {
                r: 4,
                magnet: true,
                stroke: '#31d0c6',
                strokeWidth: 2,
                fill: '#fff',
                style: { visibility: 'hidden' }
              }
            },
            zIndex: 10
          }
        }
      },
      incomingEdges: null,
      outgoingEdges: [
        {
          shape: 'edge',
          attrs: {
            line: {
              stroke: '#A2B1C3',
              strokeWidth: 1,
              targetMarker: { name: 'block', width: 12, height: 8 },
              strokeDasharray: '5 5'
            }
          },
          id: '6f36e3f6-316f-4d96-970d-c13eba401aa7:5b06fbaa-3db2-4764-91d5-eab6ab8a4af9-77766791-dadb-4db4-8d33-d40a53dcb8e4:d16ebd5e-76c9-4885-8823-c05d6fc8fec5',
          targetPortId: 'd16ebd5e-76c9-4885-8823-c05d6fc8fec5',
          sourcePortId: '5b06fbaa-3db2-4764-91d5-eab6ab8a4af9',
          zIndex: 1,
          data: {
            targetPortId: 'd16ebd5e-76c9-4885-8823-c05d6fc8fec5',
            sourcePortId: '5b06fbaa-3db2-4764-91d5-eab6ab8a4af9',
            source: {
              cell: '6f36e3f6-316f-4d96-970d-c13eba401aa7',
              port: '5b06fbaa-3db2-4764-91d5-eab6ab8a4af9'
            },
            target: {
              cell: '77766791-dadb-4db4-8d33-d40a53dcb8e4',
              port: 'd16ebd5e-76c9-4885-8823-c05d6fc8fec5'
            },
            zIndex: 1,
            attrs: {
              line: {
                stroke: '#A2B1C3',
                targetMarker: { name: 'block', width: 12, height: 8 },
                strokeDasharray: '5 5',
                strokeWidth: 1
              }
            },
            data: {
              targetPortId: 'd16ebd5e-76c9-4885-8823-c05d6fc8fec5',
              sourcePortId: '5b06fbaa-3db2-4764-91d5-eab6ab8a4af9',
              source: '6f36e3f6-316f-4d96-970d-c13eba401aa7',
              target: '77766791-dadb-4db4-8d33-d40a53dcb8e4'
            },
            id: '6f36e3f6-316f-4d96-970d-c13eba401aa7:5b06fbaa-3db2-4764-91d5-eab6ab8a4af9-77766791-dadb-4db4-8d33-d40a53dcb8e4:d16ebd5e-76c9-4885-8823-c05d6fc8fec5',
            sourcePort: '5b06fbaa-3db2-4764-91d5-eab6ab8a4af9',
            targetPort: 'd16ebd5e-76c9-4885-8823-c05d6fc8fec5'
          },
          source: {
            cell: '6f36e3f6-316f-4d96-970d-c13eba401aa7',
            port: '5b06fbaa-3db2-4764-91d5-eab6ab8a4af9'
          },
          target: {
            cell: '77766791-dadb-4db4-8d33-d40a53dcb8e4',
            port: 'd16ebd5e-76c9-4885-8823-c05d6fc8fec5'
          },
          labels: [
            {
              targetPortId: 'd16ebd5e-76c9-4885-8823-c05d6fc8fec5',
              sourcePortId: '5b06fbaa-3db2-4764-91d5-eab6ab8a4af9',
              source: {
                cell: '6f36e3f6-316f-4d96-970d-c13eba401aa7',
                port: '5b06fbaa-3db2-4764-91d5-eab6ab8a4af9'
              },
              target: {
                cell: '77766791-dadb-4db4-8d33-d40a53dcb8e4',
                port: 'd16ebd5e-76c9-4885-8823-c05d6fc8fec5'
              },
              zIndex: 1,
              attrs: {
                line: {
                  stroke: '#A2B1C3',
                  targetMarker: { name: 'block', width: 12, height: 8 },
                  strokeDasharray: '5 5',
                  strokeWidth: 1
                }
              },
              data: {
                targetPortId: 'd16ebd5e-76c9-4885-8823-c05d6fc8fec5',
                sourcePortId: '5b06fbaa-3db2-4764-91d5-eab6ab8a4af9',
                source: '6f36e3f6-316f-4d96-970d-c13eba401aa7',
                target: '77766791-dadb-4db4-8d33-d40a53dcb8e4'
              },
              id: '6f36e3f6-316f-4d96-970d-c13eba401aa7:5b06fbaa-3db2-4764-91d5-eab6ab8a4af9-77766791-dadb-4db4-8d33-d40a53dcb8e4:d16ebd5e-76c9-4885-8823-c05d6fc8fec5',
              sourcePort: '5b06fbaa-3db2-4764-91d5-eab6ab8a4af9',
              targetPort: 'd16ebd5e-76c9-4885-8823-c05d6fc8fec5'
            }
          ]
        }
      ],
      _order: 0
    },
    {
      id: '77766791-dadb-4db4-8d33-d40a53dcb8e4',
      label: '安全设备自动化封禁',
      renderKey: 'DND_NODE',
      data: {
        id: '222',
        node_name: '安全设备自动化封禁',
        node_type: 1,
        created_at: '2020-07-11',
        updated_at: '2020-07-11',
        node_script: 'javascript',
        node_id: 'ACTION_EXECUTION_NODE',
        node_conf: {
          display: '安全设备自动化封禁',
          name: '节点标识2',
          tags: ['这是一个标签'],
          description: '这是一段描述',
          image: '',
          category: '分类一',
          script: '这是一段脚本',
          input: {
            form: [
              {
                label: '封禁标识',
                field: 'block_dev_ban',
                type: 'Input',
                required: true
              },
              {
                label: '设备类型',
                field: 'block_dev_type',
                type: 'Select',
                required: true,
                options: [
                  { label: '设备类型1', value: 0 },
                  { label: '设备类型2', value: 1 }
                ],
                service: { method: 'POST', url: 'string' }
              },
              {
                label: '设备厂商',
                field: 'block_dev_name',
                type: 'Select',
                required: true,
                options: [
                  { label: '设备厂商1', value: 0 },
                  { label: '设备厂商2', value: 1 }
                ],
                service: { method: 'POST', url: 'string' }
              },
              {
                label: '设备版本',
                field: 'block_dev_edition',
                type: 'Select',
                required: true,
                options: [
                  { label: '设备版本1', value: 0 },
                  { label: '设备版本2', value: 1 }
                ],
                service: { method: 'POST', url: 'string' }
              },
              {
                label: '认证TOKEN',
                field: 'block_dev_token',
                type: 'Input',
                required: true
              },
              {
                label: '设备接口',
                field: 'block_dev_url',
                type: 'Input',
                required: true
              }
            ],
            value: {
              block_dev_ban: '封禁标识',
              block_dev_type: 0,
              block_dev_name: 1,
              block_dev_edition: 0,
              block_dev_token: 'token...',
              block_dev_url: 'url...'
            }
          }
        }
      },
      x: 80,
      y: 180,
      width: 200,
      height: 36,
      ports: {
        items: [
          { group: 'top', id: 'd16ebd5e-76c9-4885-8823-c05d6fc8fec5' },
          { group: 'right', id: 'b3584f3d-db74-40d3-88cc-442f4e38c390' },
          { group: 'bottom', id: '544005e4-dbd6-4b71-8f84-125102f44e94' },
          { group: 'left', id: '5d43905e-d36b-4e09-8568-c2eb4205d59a' }
        ],
        groups: {
          top: {
            position: { name: 'top' },
            attrs: {
              circle: {
                r: 4,
                magnet: true,
                stroke: '#31d0c6',
                strokeWidth: 2,
                fill: '#fff',
                style: { visibility: 'hidden' }
              }
            },
            zIndex: 10
          },
          right: {
            position: { name: 'right' },
            attrs: {
              circle: {
                r: 4,
                magnet: true,
                stroke: '#31d0c6',
                strokeWidth: 2,
                fill: '#fff',
                style: { visibility: 'hidden' }
              }
            },
            zIndex: 10
          },
          bottom: {
            position: { name: 'bottom' },
            attrs: {
              circle: {
                r: 4,
                magnet: true,
                stroke: '#31d0c6',
                strokeWidth: 2,
                fill: '#fff',
                style: { visibility: 'hidden' }
              }
            },
            zIndex: 10
          },
          left: {
            position: { name: 'left' },
            attrs: {
              circle: {
                r: 4,
                magnet: true,
                stroke: '#31d0c6',
                strokeWidth: 2,
                fill: '#fff',
                style: { visibility: 'hidden' }
              }
            },
            zIndex: 10
          }
        }
      },
      incomingEdges: [
        {
          shape: 'edge',
          attrs: {
            line: {
              stroke: '#A2B1C3',
              strokeWidth: 1,
              targetMarker: { name: 'block', width: 12, height: 8 },
              strokeDasharray: '5 5'
            }
          },
          id: '6f36e3f6-316f-4d96-970d-c13eba401aa7:5b06fbaa-3db2-4764-91d5-eab6ab8a4af9-77766791-dadb-4db4-8d33-d40a53dcb8e4:d16ebd5e-76c9-4885-8823-c05d6fc8fec5',
          targetPortId: 'd16ebd5e-76c9-4885-8823-c05d6fc8fec5',
          sourcePortId: '5b06fbaa-3db2-4764-91d5-eab6ab8a4af9',
          zIndex: 1,
          data: {
            targetPortId: 'd16ebd5e-76c9-4885-8823-c05d6fc8fec5',
            sourcePortId: '5b06fbaa-3db2-4764-91d5-eab6ab8a4af9',
            source: {
              cell: '6f36e3f6-316f-4d96-970d-c13eba401aa7',
              port: '5b06fbaa-3db2-4764-91d5-eab6ab8a4af9'
            },
            target: {
              cell: '77766791-dadb-4db4-8d33-d40a53dcb8e4',
              port: 'd16ebd5e-76c9-4885-8823-c05d6fc8fec5'
            },
            zIndex: 1,
            attrs: {
              line: {
                stroke: '#A2B1C3',
                targetMarker: { name: 'block', width: 12, height: 8 },
                strokeDasharray: '5 5',
                strokeWidth: 1
              }
            },
            data: {
              targetPortId: 'd16ebd5e-76c9-4885-8823-c05d6fc8fec5',
              sourcePortId: '5b06fbaa-3db2-4764-91d5-eab6ab8a4af9',
              source: '6f36e3f6-316f-4d96-970d-c13eba401aa7',
              target: '77766791-dadb-4db4-8d33-d40a53dcb8e4'
            },
            id: '6f36e3f6-316f-4d96-970d-c13eba401aa7:5b06fbaa-3db2-4764-91d5-eab6ab8a4af9-77766791-dadb-4db4-8d33-d40a53dcb8e4:d16ebd5e-76c9-4885-8823-c05d6fc8fec5',
            sourcePort: '5b06fbaa-3db2-4764-91d5-eab6ab8a4af9',
            targetPort: 'd16ebd5e-76c9-4885-8823-c05d6fc8fec5'
          },
          source: {
            cell: '6f36e3f6-316f-4d96-970d-c13eba401aa7',
            port: '5b06fbaa-3db2-4764-91d5-eab6ab8a4af9'
          },
          target: {
            cell: '77766791-dadb-4db4-8d33-d40a53dcb8e4',
            port: 'd16ebd5e-76c9-4885-8823-c05d6fc8fec5'
          },
          labels: [
            {
              targetPortId: 'd16ebd5e-76c9-4885-8823-c05d6fc8fec5',
              sourcePortId: '5b06fbaa-3db2-4764-91d5-eab6ab8a4af9',
              source: {
                cell: '6f36e3f6-316f-4d96-970d-c13eba401aa7',
                port: '5b06fbaa-3db2-4764-91d5-eab6ab8a4af9'
              },
              target: {
                cell: '77766791-dadb-4db4-8d33-d40a53dcb8e4',
                port: 'd16ebd5e-76c9-4885-8823-c05d6fc8fec5'
              },
              zIndex: 1,
              attrs: {
                line: {
                  stroke: '#A2B1C3',
                  targetMarker: { name: 'block', width: 12, height: 8 },
                  strokeDasharray: '5 5',
                  strokeWidth: 1
                }
              },
              data: {
                targetPortId: 'd16ebd5e-76c9-4885-8823-c05d6fc8fec5',
                sourcePortId: '5b06fbaa-3db2-4764-91d5-eab6ab8a4af9',
                source: '6f36e3f6-316f-4d96-970d-c13eba401aa7',
                target: '77766791-dadb-4db4-8d33-d40a53dcb8e4'
              },
              id: '6f36e3f6-316f-4d96-970d-c13eba401aa7:5b06fbaa-3db2-4764-91d5-eab6ab8a4af9-77766791-dadb-4db4-8d33-d40a53dcb8e4:d16ebd5e-76c9-4885-8823-c05d6fc8fec5',
              sourcePort: '5b06fbaa-3db2-4764-91d5-eab6ab8a4af9',
              targetPort: 'd16ebd5e-76c9-4885-8823-c05d6fc8fec5'
            }
          ]
        }
      ],
      outgoingEdges: null,
      _order: 0
    }
  ],
  edges: [
    {
      id: '6f36e3f6-316f-4d96-970d-c13eba401aa7:5b06fbaa-3db2-4764-91d5-eab6ab8a4af9-77766791-dadb-4db4-8d33-d40a53dcb8e4:d16ebd5e-76c9-4885-8823-c05d6fc8fec5',
      targetPortId: 'd16ebd5e-76c9-4885-8823-c05d6fc8fec5',
      sourcePortId: '5b06fbaa-3db2-4764-91d5-eab6ab8a4af9',
      source: {
        cell: '6f36e3f6-316f-4d96-970d-c13eba401aa7',
        port: '5b06fbaa-3db2-4764-91d5-eab6ab8a4af9'
      },
      target: {
        cell: '77766791-dadb-4db4-8d33-d40a53dcb8e4',
        port: 'd16ebd5e-76c9-4885-8823-c05d6fc8fec5'
      },
      zIndex: 1,
      attrs: {
        line: {
          stroke: '#A2B1C3',
          targetMarker: { name: 'block', width: 12, height: 8 },
          strokeDasharray: '5 5',
          strokeWidth: 1
        }
      },
      data: {
        targetPortId: 'd16ebd5e-76c9-4885-8823-c05d6fc8fec5',
        sourcePortId: '5b06fbaa-3db2-4764-91d5-eab6ab8a4af9',
        source: '6f36e3f6-316f-4d96-970d-c13eba401aa7',
        target: '77766791-dadb-4db4-8d33-d40a53dcb8e4'
      },
      sourcePort: '5b06fbaa-3db2-4764-91d5-eab6ab8a4af9',
      targetPort: 'd16ebd5e-76c9-4885-8823-c05d6fc8fec5'
    }
  ]
}

export default data
